import random
import os
from stat import * # ST_SIZE etc

if os.name == 'posix':
	divider = '/'

s = os.getcwd();

try:
    fileName = raw_input('please enter file name:')
except ValueError:
    print "ERROR: Not a number!"



f = open(s + divider + fileName, 'w+')

try:
    mode=int(raw_input('please enter number of numbers:'))
except ValueError:
    print "ERROR: Not a number!"
    mode = 0

for x in range(1,mode):
	a = random.randint(-100, 100)
	f.write(repr(a) + ',')

statinfo = os.stat(fileName)[ST_SIZE] / 1024 

print statinfo, "KB"
